home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / dispat.exe / DISPATCH.TXT < prev   
Text File  |  1991-10-08  |  3KB  |  79 lines

  1. Dispatch.txt
  2. Joe McDermott  oct 1991
  3.  
  4. The program 'dispatch.cpp' illustrates Borland's dispatch by value feature.
  5. The code is similar to that found in ..\owl\source\windobj.cpp but has
  6. been stripped down to essential details.  Borland describes the use
  7. of this feature in the "Object Windows - Programmers' Guide" pp. 16-21.
  8.  
  9. Unfortunately Borland only documented the RECEIVING side of the dispatch
  10. but neglected to discuss the sending side.  The code supporting the SEND of
  11. a dynamic value dispatch can be found in "windobj.cpp". See lines 494ff
  12. or search for "DispatchAMessage"  The code is complex and may be difficult
  13. to interpret.
  14.  
  15. This program "dispatch.cpp" is very simple and should pose no difficulty.
  16.  
  17. Files in zip:
  18.  
  19.     dispatch.cpp  -  example program
  20.  
  21.     dispatch.exe  -  compiled program (to prove that it really works !!)
  22.  
  23.     dispatch.txt  -  this explanation
  24.  
  25.     ddispatc.obj  -  compiled from assembler source essentially the same
  26.                         as Borland's 'dd.asm'
  27.  
  28.     dispatch.prj  -  project file
  29.  
  30. NOTE: Compile with the large model (Options, Compiler, Code generation)
  31.         and far virtual tables     (Options,  Compiler,  C++ options)
  32.  
  33.          ----------------end-of-author's-documentation---------------
  34.  
  35.                          Software Library Information:
  36.  
  37.                     This disk copy provided as a service of
  38.  
  39.                            Public (software) Library
  40.  
  41.          We are not the authors of this program, nor are we associated
  42.          with the author in any way other than as a distributor of the
  43.          program in accordance with the author's terms of distribution.
  44.  
  45.          Please direct shareware payments and specific questions about
  46.          this program to the author of the program, whose name appears
  47.          elsewhere in  this documentation. If you have trouble getting
  48.          in touch with the author,  we will do whatever we can to help
  49.          you with your questions. All programs have been tested and do
  50.          run.  To report problems,  please use the form that is in the
  51.          file PROBLEM.DOC on many of our disks or in other written for-
  52.          mat with screen printouts, if possible.  PsL cannot debug pro-
  53.          programs over the telephone, though we can answer questions.
  54.  
  55.          Disks in the PsL are updated  monthly,  so if you did not get
  56.          this disk directly from the PsL, you should be aware that the
  57.          files in this set may no longer be the current versions. Also,
  58.          if you got this disk from another vendor and are having prob-
  59.          lems,  be aware that  some files may have become corrupted or
  60.          lost by that vendor. Get a current, working disk from PsL.
  61.  
  62.          For a copy of the latest monthly software library newsletter
  63.          and a list of the 3,000+ disks in the library, call or write
  64.  
  65.                            Public (software) Library
  66.                                P.O.Box 35705 - F
  67.                             Houston, TX 77235-5705
  68.  
  69.                                 1-800-2424-PSL
  70.                              MC/Visa/AmEx/Discover
  71.  
  72.                           Outside of U.S. or in Texas
  73.                           or for general information,
  74.                               Call 1-713-524-6394
  75.  
  76.                           PsL also has an outstanding
  77.                           catalog for the Macintosh.
  78.  
  79.